<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset='UTF-8'>
    <title>
        订单
    </title>
    <link href="/static/css/company.css" rel="stylesheet" media="all">
</head>
<body th:background="@{/img/backg.png}">
<div class="wrap">
    <div class="login-wrap">
        <center>
            <a href="/index" style="background: #E1E8EE"> 回到商城 </a><br><br><br>
                <div style="overflow-x: auto; overflow-y: auto; height: 400px; width:600px;">
                    <table border="2" bgcolor="#E1E8EE" align="center" height="100px" width="500px">
                        <caption>历史订单</caption>
                        <tr>
                            <th>订单编号</th>
                            <th>交易金额</th>
                            <th>交易时间</th>
                            <th>操作内容</th>
                        </tr>
                        <tr th:each="order:${orderListList}">
                            <form th:action="@{'/deleteOrder'+'/'+${order.id}}" method='get'>
                                <td th:text="${order.id}"></td>
                                <td th:text="${order.money}"></td>
                                <td th:text="${order.time}"></td>
                                <th>
                                    <input type="submit" value="删除此条交易记录"></button>
                                </th>
                            </form>
                        </tr>
                    </table>
                </div>
            <a href="/cart" style="background: #E1E8EE">查看购物车</a>
        </center>
    </div>
</div>
</body>
</html>